package com.wsc.goods.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 基础配置
 */
@Configuration
public class BaseConfig {

    /**
     * 分页插件
     * @return 分页对象
     */
    @Bean
    public PaginationInterceptor getPage(){
        PaginationInterceptor page = new PaginationInterceptor();
        return page;
    }

}
